let Home = () => import("../views/Home.vue");

const basicRoutes = [
  {
    path: "/",
    name: "blank",
    title: "系统",
    redirect: "/index",
  },
  {
    path: "/login",
    name: "login",
    title: "登录",
    component: () => import("../views/userCenter/Login.vue"),
  },
  {
    path: "/home",
    name: "home",
    title: "首页",
    meta: {
      title: "首页",
    },
    redirect: "/index",
    component: Home,
    children: [
      {
        path: "/index",
        name: "index",
        title: "首页",
        redirect: "/industry",
        meta: {
          title: "首页，展示在标签上",
        },
        component: () => import("../views/index/Index.vue"),
      },
      {
        path: "/industry",
        name: "industry",
        title: "产业生态",
        meta: {
          title: "产业生态",
        },
        component: () => import("../views/InfoPub/IndustryEco"),
      },
      {
        path: "/product",
        name: "product",
        title: "产品介绍",
        meta: {
          title: "产品介绍",
        },
        component: () => import("../views/InfoPub/ProductIntro"),
      },
      {
        path: "/article",
        name: "article",
        title: "知识中心",
        meta: {
          title: "知识中心",
        },
        component: () => import("../views/InfoPub/ArticleCenter"),
      },
      {
        path: "/notice",
        name: "notice",
        title: "公告中心",
        meta: {
          title: "公告中心",
        },
        component: () => import("../views/InfoPub/NoticeCenter"),
      },
      {
        path: "/demand",
        name: "demand",
        title: "需求审核",
        meta: {
          title: "需求审核"
        },
        component: () => import("../views/CheckManage/Demand"),
      },
    ],
  },
];

export default basicRoutes;
